from django.urls import path
from .views import *

urlpatterns = [
    path('addgrade/', GradeView.as_view()),
    path('gradelist/', GradeView.as_view()),
    path('updategrade/<grade_id>', GradeView.as_view()),
    path('delgrade/<grade_id>', GradeView.as_view()),
    path('adduser/', UserView.as_view()),
    path('userlist/', UserView.as_view()),
    path('updateuser/<uid>', UserView.as_view()),
    path('deluser/<uid>', UserView.as_view()),
    path('addcate/', CateView.as_view()),
    path('catelist/', CateView.as_view()),
    path('updatecate/<cid>', CateView.as_view()),
    path('delcate/<cid>', CateView.as_view()),
    path('addfiction/', FictionView.as_view()),
    path('fictionlist/', FictionView.as_view()),
    path('updatefiction/<fid>', FictionView.as_view()),
    path('delfiction/<fid>', FictionView.as_view()),
    path('addsection/', SectionView.as_view()),
    path('sectionlist/', SectionView.as_view()),
    path('updatesection/<sid>', SectionView.as_view()),
    path('delsection/<sid>', SectionView.as_view()),
]
